'use strict';
const requireEx =require('yi-require');
const $ = requireEx('yi-schema');

module.exports = {
	body: $.object({
		_id: $.mongoid().required().description("_id"),
		title:$.string().min(1).max(50).description("标题"),
		picPath:$.string().description("图片路径"),
        selectedCards:$.array().items($.mongoid()).description("精选卡片"),
		content:$.string().description("内容"),
		ord:$.number().integer().positive().description('排序')
	})
};